﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="List.aspx.cs"
    Inherits="porcentagemProfessor.List" %>

<%@ Register Src="~/DynamicData/Content/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="asp" %>
<%@ Register Src="~/DynamicData/Content/FilterUserControl.ascx" TagName="DynamicFilter"
    TagPrefix="asp" %>
<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="Catalyst.Web.DynamicData" Namespace="Catalyst.Web.DynamicData"
    TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true" />
    <div class="tamanho">
        <h2>
            Lista de Percentual dos Professores</h2>
        <asp:ScriptManagerProxy runat="server" ID="ScriptManagerProxy1" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:DynamicValidator runat="server" ID="GridViewValidator" ControlToValidate="GridView1"
                    Display="None" />
                <asp:GridView ID="GridView1" runat="server" CssClass="gridview" AllowPaging="true"
                    AllowSorting="true" AutoGenerateColumns="false" OnPageIndexChanging="GridView1_PageIndexChanging"
                    OnRowDataBound="RowDataBound" DataKeyNames="codigoPorcentagem" Width="99%">
                    <Columns>
                        <asp:BoundField HeaderText="" DataField="codigoPorcentagem" Visible="false"></asp:BoundField>
                        <%--<asp:BoundField HeaderText="Data inicial" DataField="dataInicial" ItemStyle-Width="250">
                            <ItemStyle Width="250px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Data final" DataField="dataFinal" ItemStyle-Width="170">
                            <ItemStyle Width="170px" />
                        </asp:BoundField>--%>
                        <asp:BoundField HeaderText="Valor da Porcentagem para o professor" DataField="valorPorcentagem" ItemStyle-Width="170">
                            <ItemStyle Width="170px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Modalidade da aula " DataField="modalidadeAula" ItemStyle-Width="170">
                            <ItemStyle Width="170px" />
                        </asp:BoundField>
                        
                    </Columns>
                    <PagerStyle CssClass="footer" />
                    <PagerTemplate>
                        <asp:GridViewPager ID="GridViewPager1" runat="server" />
                    </PagerTemplate>
                    <EmptyDataTemplate>
                        Não existem Percentuais cadastrados.
                    </EmptyDataTemplate>
                </asp:GridView>
                <br />
                <%//string codigoUrl = Request["codigoProfessor"].ToString();%>
                <%--<a href="<%=Convert.ToString(ConfigurationManager.AppSettings["url"])%>/porcentagemProfessors/Insert.aspx?erro=ok">
                    Cadastrar Novo Percentual</img></a>--%>
                <br />
                <br />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
